﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;

namespace NetCoreExceptionIntroduce
{
    public class SomeResultFilter : ResultFilterAttribute
    {
        public override void OnResultExecuting(ResultExecutingContext context)
        {
            context.Result = new ContentResult
            {
                Content = "simple messagae",
                ContentType = "text/plain",
                StatusCode = 200
            };
            //base.OnResultExecuting(context);
        }
    }
}
